﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using Devonline.Core;
using Devonline.Entity;
using Mapster;

namespace Devonline.Identity.Admin.Models
{
    public class ResourceChangeViewModel
    {
        /// <summary>
        /// 资源编号
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        public string Alias { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        public string Image { get; set; }
        /// <summary>
        /// 资源标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 资源访问地址
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 资源类型 ResourceType 枚举类型的值
        /// </summary>
        public ResourceType Type { get; set; }
        /// <summary>
        /// parent id
        /// </summary>
        public string ParentId { get; set; }
        /// <summary>
        /// 资源描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 通用附件集合, NotMapped 用于记录实体对象上上传的附件
        /// </summary>
        [NotMapped, AdaptIgnore]
        public ICollection<Attachment> Attachments { get; set; }
    }
}
